    <div class="mainCon">
        <div class="breadCurmbs"><a href="#">新增管理员</a></div>
      <div class="box" id="edit" >
          <form action="<?php echo site_url("front/member/member_add") ?>"  onsubmit="return check();"   method="post"  enctype="multipart/form-data" >
          <font color="red"><?php if($error) echo $error; ?></font>
             <table cellpadding="0" cellspacing="0" border="0" class="table-3">  
           		<tr>
                    <td class="num1">用户名：</td>
                    <td class="num2">
                        <input type="text" placeholder="请输入用户名" name="name" value="<?php echo set_value('name');?>"/>
                        <span class="help-inline"><?php echo form_error('name'); ?></span>
                    </td>
                </tr>
           		<tr>
                    <td class="num1">密码：</td>
                    <td class="num2">
                        <input type="password" placeholder="请输入密码" name="password" value="<?php echo set_value('password');?>"/>
                        <span class="help-inline"><?php echo form_error('password'); ?></span>
                    </td>
                </tr>
                <tr>
                	<td class="num1">确认密码：</td>
                    <td class="num2">
                        <input type="password" placeholder="请确认密码" name="cpassword" value="<?php echo set_value('cpassword');?>"/>
                        <span class="help-inline"><?php echo form_error('cpassword'); ?></span>
                    </td>
                </tr>
                <tr>
                 <td class="num1">手机号码：</td>
                 <td class="num2">
                     <input type="text" placeholder="请确认手机号码" name="phone" value="<?php echo set_value('phone');?>"/>
                     <span class="help-inline"><?php echo form_error('phone'); ?></span>
                 </td>
                </tr>
                 <tr>
                     <td class="num1">邮箱：</td>
                     <td class="num2">
                         <input type="text" placeholder="请确认邮箱" name="email" value="<?php echo set_value('email');?>"/>
                         <span class="help-inline"><?php echo form_error('email'); ?></span>
                     </td>
                 </tr>
                 <tr>
                     <td class="num1">出生日期：</td>
                     <td class="num2">
                         <input type="text" name="birth_date" class="Wdate" value="<?php echo set_value('address');?>" onClick="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd'})" />
                         <span class="help-inline"><?php echo form_error('birth_date'); ?></span>
                     </td>
                 </tr>
                 <tr>
                     <td class="num1">地址：</td>
                     <td class="num2">
                         <input type="text" placeholder="请确认地址" name="address" value="<?php echo set_value('address');?>"/>
                         <span class="help-inline"><?php echo form_error('address'); ?></span>
                     </td>
                 </tr>
                 <tr>
                     <td class="num1">头像：</td>
                     <td class="num2">
                         <input type="file" name="img"/>
                         <span class="help-inline"><?php echo form_error('phone'); ?></span>
                     </td>
                 </tr>
                <tr>
                	<td class="num1">性别：</td>
                    <td class="num2">
                        <input type="radio" name="gender" value="0"/> 男 &nbsp;&nbsp;
                        <input type="radio" name="gender" value="1" checked="checked"/> 女 &nbsp;&nbsp;
                        <span class="help-inline"><?php echo form_error('gender'); ?></span>
                    </td>
                </tr>
                 <tr>
                     <td class="num1">个人链接：</td>
                     <td class="num2">
                         <input type="text" class="input-xxlarge" placeholder="请输入个人链接" name="url" value="<?php echo set_value('url');?>"/>
                         <span class="help-inline"><?php echo form_error('url'); ?></span>
                     </td>
                 </tr>
                <tr>
                  <td class="num1"></td>
                  <td class="num2">
                      <input type="submit" href="<?php echo site_url('front/member/member_add')?>" class="btn btn-danger" value="添加"/>
                  </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
   function check()
   {
	  var  video_title = document.getElementsByTabName("input").value;
	  if(video_title=='')
	   {
		   alert("请输入完整信息！");
			return false;	
	   }
	   return true;
   }
</script>